//
//  LoginNet.h
//  SportSocial
//
//  Created by yull on 14/12/4.
//  Copyright (c) 2014年 yull. All rights reserved.
//

#import "BaseNet.h"

@interface UserNet : BaseNet

+ (AFHTTPRequestOperation *)confirmCodeWithPhone:(NSString *)phoneNumber
                successBlock:(httpSuccessBlock)successBlock
                   failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)registerWithMobile:(NSString *)mobile
                                          name:(NSString *)name
                                           sex:(NSInteger)sex
                                      password:(NSString *)password
                                    verifyCode:(NSString *)verifyCode
                                  successBlock:(httpSuccessBlock)successBlock
                                     failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)logOutWithToken:(NSString *)token
                                 successBlock:(httpSuccessBlock)successBlock
                                    failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)updateUserWithAddress:(NSString *)address
                                              sex:(NSInteger)sex
                                        signature:(NSString *)signature
                                      friendCheck:(BOOL)friendCheck
                                           height:(CGFloat)height
                                           weight:(CGFloat)weight
                                     successBlock:(httpSuccessBlock)successBlock
                                        failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)uploadIconWithIconData:(NSData *)iconData
                                   successBlock:(httpSuccessBlock)successBlock
                                      failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)searchUserWithName:(NSString *)name
                                    pageNumber:(NSInteger)page
                                      pageSize:(NSInteger)size
                                   successBlock:(httpSuccessBlock)successBlock
                                      failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)queryUserWithUserId:(uint64_t)userId
                                  successBlock:(httpSuccessBlock)successBlock
                                     failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)locateWithToken:(NSString *)token
                                   latitude:(CGFloat)latitude
                                  longitude:(CGFloat)longitude
                               successBlock:(httpSuccessBlock)successBlock
                                  failBlock:(httpFailBlock)failBlock;

+ (AFHTTPRequestOperation *)updateIOSdeviceTokenSuccessBlock:(httpSuccessBlock)successBlock
                                                   failBlock:(httpFailBlock)failBlock;

@end
